<?php
// Application core configuration
require_once '../app/configuration/core.php';

// Application Page Cache init
require_once '../app/configuration/bootstrap.cache.php';

// Register autoloader
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
spl_autoload_register(array($autoloader,'autoload'));

// Create application, bootstrap, and run
$application = new Zend_Application(
    APP_ENV,
    APP_PATHNAME . '/configuration/application.php'
);

try {
	$application->bootstrap();
	$application->run();
} catch (Zend_Db_Exception $e) {
	require_once 'errors/database.phtml';
} catch (Exception $e) {
	require_once 'errors/exception.phtml';
}